class DbLog < ActiveRecord::Base
  scope :paginate, lambda { |start,limit| { :offset => start.to_i,:limit => limit.to_i,:order=>"id DESC" }}

  def self.info( cName , aName ,ip, info)
    dbLog = DbLog.new
    dbLog.c_name = cName
    dbLog.a_name = aName
    dbLog.ip = ip
    dbLog.description = info
    dbLog.save!
  end
end
